<%@taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="richfaces"%><%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">

	<title>CON-111: Reservation Report[Output]</title>
	
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="./css/custom.css">
	<link rel="stylesheet" type="text/css" href="./css/template01.css">

</head>
  
<body>
	<div id="wrapper">
	<f:view>
			<f:loadBundle var="bundle"
				basename="com.tpc.control.message.ResourceBundle" />
		<div id="header">
			<p><h:outputText value="#{bundle.project_name}"/></p>		 	   
		</div>
        <div id="navigation">
        	<h:outputText value="#{bundle.con131}" styleClass="header2"/>
		</div>		
		<div id="content">
			<h:form id="con111Form">
				<rich:datascroller for="reportList"></rich:datascroller>
				<rich:dataTable  value="#{con130.report}" var="dat" id="reportList" rows="20">
        <rich:column>
	        <f:facet name="header">
	        	<h:outputText value="#{bundle.division}"/> 
	        </f:facet>
	        <h:outputText value="#{dat.division}" />
        </rich:column>

        <rich:column>

                <f:facet name="header"><h:outputText value="#{bundle.reserve_qty}"/></f:facet>
			<h:outputText value="#{dat.reserveQty}"/>
    
        </rich:column>

        <rich:column >

                <f:facet name="header"><h:outputText value="#{bundle.reserve_value}"/></f:facet>
				<h:outputText value="#{dat.reserveValue}"/>
                        
        </rich:column>
		<rich:column>

                <f:facet name="header"><h:outputText value="#{bundle.order_quantity}"/></f:facet>
				<h:outputText value="#{dat.orderQty}"/>
        </rich:column>
        <rich:column>

                <f:facet name="header"><h:outputText value="#{bundle.order_value}"/></f:facet>
				<h:outputText value="#{dat.orderAmount}"/>
        </rich:column>
        <rich:column>

                <f:facet name="header"><h:outputText value="#{bundle.tot_complete}"/></f:facet>
				<h:outputText value="#{dat.completeFlag}"/>
        </rich:column>
        <rich:column>

                <f:facet name="header"><h:outputText value="#{bundle.tot_complete_amount}"/></f:facet>
				<h:outputText value="#{dat.completeAmount}"/>
        </rich:column>
        <rich:column>

                <f:facet name="header"><h:outputText value="#{bundle.tot_remain}"/></f:facet>
				<h:outputText value="#{dat.noCompleteFlag}"/>
        </rich:column>
        <rich:column>

                <f:facet name="header"><h:outputText value="#{bundle.tot_remain_amount}"/></f:facet>
				<h:outputText value="#{dat.noCompleteAmount}"/>
        </rich:column>
        
               
 
               
                       
		               
 		               
                       
                       
                       
                       
                       
                       
                       
                       
                       
                       
                       
                       
                       
        
				</rich:dataTable>
	
						
								<h:commandButton value=" Download To Excel " style="width: 148px" actionListener="#{con130.operate2}"/>
								
								
								 
					<h:commandButton value="กลับ" action="back" style="width: 100px" actionListener="#{con130.back}"/>	
						
									
								
						
				
				

			</h:form>
		</div>  
		<div id="footer">
			<h:form id="footerForm">
				<h:panelGrid columns="2" width="500px" styleClass="normal2">
				<h:panelGroup>
					<h:outputText value="#{bundle.current_user}" styleClass="headerSubject"/>
					<h:outputText value="#{con000.userName}"/>
				</h:panelGroup>
				<h:panelGroup>
				<h:commandLink value="Main Menu" action="con001" styleClass="header2"></h:commandLink>
				<h:outputText value="|"/>
				<h:commandLink value="Logoff" action="#{con000.logoff}" styleClass="header2"></h:commandLink>
				</h:panelGroup>
				</h:panelGrid>
			</h:form> 
		</div>

		</f:view>
	</div>
</body>
</html>